<template>
	<view class="content">
		<mytab :list="myList" name="category" :current="current" @change="handleChange"></mytab>
		<view>
			<view v-for="(item,index) in myList[current].picList" style="float:left;width:300rpx;height:200rpx;border-radius:20rpx;margin-left:30rpx;overflow:hidden;margin-top:30rpx">
				<image :src="item" style="width:300rpx;height:200rpx;" mode="aspectFill">
					
				</image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				current:0,
				myList:[
					{
						category:"风景",
						picList:[
							"https://bzadmin.ajiexcx.cn/img/2025/03/11/20250311142758A072.jpg",
							"https://bzadmin.ajiexcx.cn/img/2025/03/11/20250311142755A071.jpg"
						]
					},
					{
						category:"二次元",
						picList:[
							"https://bzadmin.ajiexcx.cn/img/2025/03/11/20250311142754A069.jpg",
							"https://bzadmin.ajiexcx.cn/img/2025/03/11/20250311142754A070.jpg",
							"https://bzadmin.ajiexcx.cn/img/2025/03/11/20250311142754A068.jpg",
						]
					},
					{
						category:"电影",
						picList:[
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122925A066.jpg",
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122912A061.jpg"
						]
					},
					{
						category:"唯美",
						picList:[
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122854A051.jpg",
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122854A048.jpg"
						]
					},
					{
						category:"动画",
						picList:[
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122853A042.jpg",
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122853A043.jpg"
						]
					},
					{
						category:"蜡笔小新",
						picList:[
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122853A041.jpg",
							"https://bzadmin.ajiexcx.cn/img/2025/03/08/20250308122853A040.jpg"
						]
						
					},
					{
						category:"欧美",
						picList:[
							"https://bzadmin.ajiexcx.cn/img/2024/09/26/20240926091801A118.jpg",
							"https://bzadmin.ajiexcx.cn/img/2024/09/07/20240907172005A031.jpg"
						]
						
					},
					{
						category:"IOS"
					}
				]
			}
		},
		onLoad() {

		},
		methods: {
			handleChange(index){
				console.log("选择了：",index)
				this.current = index;
			}
		}
	}
</script>

<style>
	page{
		padding: 30rpx;
		box-sizing: border-box;
	}
	.content {
	}
</style>
